const path = require('path')


module.exports = {
    devServer: {
        disableHostCheck: true,
        port: 8080,
        host: "0.0.0.0"
    },
    lintOnSave: false,
    // webpack配置
    chainWebpack: config => {
        // 配置路径别名
        config.resolve.alias
        .set('@', path.join(__dirname, 'src'))
        .set('@assets', path.join(__dirname, 'src/assets'))
        .set('@components', path.join(__dirname, '/src/components'))
        .set('@views', path.join(__dirname, 'src/views'))

    }
}